<template>
  <el-form class="right-event-custom-user">
    <input-normal label="自定义用户键" v-model="wbData.key" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="自定义用户值" v-model="wbData.value" @change="onUpdateWbComponent"></input-normal>
  </el-form>
</template>

<script>
import InputNormal from '@/views/components/edit/InputNormal.vue'

import { addUtils } from "@/views/js/add-utils"

  export default {
    mixins: [addUtils],
    components: {
      InputNormal,
    },
    methods:{
      onUpdateWbComponent(){
        this.wbData[this.wbData.key] = this.wbData.value
        this.updateWbComponent({controlId: this.event.controlId, data: this.wbData});
      },
    }
  }
</script>